package com.alibaba.otter.manager.web.dto;

import com.alibaba.otter.shared.common.model.config.channel.Channel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.time.Instant;
import java.util.Map;

@Getter
@Setter
@NoArgsConstructor
public class DelayStatInfoDTO {


    private Long pipelineId;

    private Map<Long, RecentDelayStat> delayStatInfos;

    private Double delayAvg;

    private Channel channel;

    private Instant startTime;

    private Instant endTime;


    @Getter
    @Setter
    @NoArgsConstructor
    public static class RecentDelayStat{

        private Double avgDelayNumber;

        private Double avgDelayTime;
    }
}
